package com.ruin.tech.ahri.dao;

import com.ruin.tech.ahri.model.dto.Article;

import java.util.List;

import com.ruin.tech.ahri.model.dto.ArticleExample;
import com.ruin.tech.ahri.model.vo.ArticleVO;
import org.apache.ibatis.annotations.Param;

public interface ArticleMapper {
    int countByExample(ArticleExample example);

    int deleteByExample(ArticleExample example);

    int insert(Article record);

    int insertSelective(Article record);

    List<Article> selectByExample(ArticleExample example);

    int updateByExampleSelective(@Param("record") Article record, @Param("example") ArticleExample example);

    int updateByExample(@Param("record") Article record, @Param("example") ArticleExample example);

    ArticleVO selectArticleDetail(@Param("id") Long id, @Param("loginUserId") Long loginUserId);

    List<Article> selectBrowseList(@Param("loginUserId") Long loginUserId);

    List<Article> selectLikeList(@Param("loginUserId") Long loginUserId);
}